import java.util.ArrayList;
import java.util.Random;

public class Bot extends Player_comp {

	Random random = new Random();

	public Bot(String nick) {
		super(nick);
	}

	public Bot(int botDiff) {
		super("BotJESTEM");
	}

	public ArrayList<Card> pickCardsToChange() {
		ArrayList<Card> toChange = null;

		toChange = BotExStrategy(hand.cards);
		
		numOfExCards = toChange.size();
		return toChange;
	}

	private ArrayList<Card> BotExStrategy(ArrayList<Card> cards) {
		ArrayList<Card> toChange;
		do {

			toChange = new ArrayList<>();
			for (int i = 0; i < cards.size(); i++) {
				if (random.nextBoolean()) {
					Card c = typeCard();
					toChange.add(c);
				}
			}
		} while (toChange.size() == cards.size());
		return toChange;
	}

	private Card typeCard() {
		return hand.cards.get(random.nextInt(hand.cards.size()));
	}

	

}
